package com.turing.comment.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.text.ParseException;

@FeignClient("mission-server")
public interface MissionService {

    /**
     * 30102任务详情(PC)
     */
    @GetMapping("/mission/mi/geMissionById")
    Result geMissionById(@RequestParam(value = "id", required = false) String id) throws ParseException;

    /**
     * 30104修改任务(PC)
     */
    @PatchMapping("/mission/mi/missonEdit")
    Result missonEdit(@RequestBody JSONObject jsonObject);

}
